<!--手机商城网站页脚组件-->
<template>
  <!--作为页脚容器，包含公司信息、导航、客服和版权区-->>
  <footer class="footer">
    <div class="footer-container">
      <div class="footer-content">
        <!-- 公司信息 -->
        <div class="footer-section">
          <h3 class="section-title">📱 手机商城</h3>
          <p class="company-desc">
            专业的手机销售平台，为您提供最新最优质的手机产品和服务。
          </p>
          <!--社交链接-->
          <div class="social-links">
            <a href="#" class="social-link">📘 微博</a>
            <a href="#" class="social-link">💬 微信</a>
            <a href="#" class="social-link">📺 抖音</a>
          </div>
        </div>
        
        <!-- 快速链接 -->
        <div class="footer-section">
          <h4 class="section-subtitle">快速链接</h4>
          <ul class="footer-links">
            <li><router-link to="/" class="footer-link">首页</router-link></li>
            <li><router-link to="/cart" class="footer-link">购物车</router-link></li>
            <li><router-link to="/user" class="footer-link">用户中心</router-link></li>
            <li><router-link to="/settings" class="footer-link">个人设置</router-link></li>
          </ul>
        </div>
        
        <!-- 客户服务 -->
        <div class="footer-section">
          <h4 class="section-subtitle">客户服务</h4>
          <ul class="footer-links">
            <li><a href="#" class="footer-link">帮助中心</a></li>
            <li><a href="#" class="footer-link">售后服务</a></li>
            <li><a href="#" class="footer-link">退换货政策</a></li>
            <li><a href="#" class="footer-link">配送说明</a></li>
          </ul>
        </div>
        
        <!-- 联系方式 -->
        <div class="footer-section">
          <h4 class="section-subtitle">联系我们</h4>
          <div class="contact-info">
            <p class="contact-item">
              <span class="contact-icon">📞</span>
              客服热线：400-888-8888
            </p>
            <p class="contact-item">
              <span class="contact-icon">✉️</span>
              邮箱：service@phone-mall.com
            </p>
            <p class="contact-item">
              <span class="contact-icon">⏰</span>
              工作时间：9:00-21:00
            </p>
          </div>
        </div>
      </div>
      
      <!-- 底部版权信息 -->
      <div class="footer-bottom">
        <div class="copyright">
          <p>&copy; 2025 手机商城. 保留所有权利.</p>
          <p>本站仅供学习交流使用，商品图片来源于网络</p>
        </div>
        <div class="footer-badges">
          <span class="badge">✅ 正品保证</span>
          <span class="badge">🚚 快速配送</span>
          <span class="badge">🔒 安全支付</span>
          <span class="badge">📞 7x24客服</span>
        </div>
      </div>
    </div>
  </footer>
</template>

<script setup>
// Footer组件无需额外逻辑
</script>
<!--样式部分-->
<style scoped>
.footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section {
  min-width: 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 16px;
  color: #3498db;
}

.section-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #ecf0f1;
}

.company-desc {
  line-height: 1.6;
  margin-bottom: 20px;
  color: #bdc3c7;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  color: #ecf0f1;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-link {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1.5;
}

.footer-link:hover {
  color: #3498db;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #bdc3c7;
  line-height: 1.5;
}

.contact-icon {
  font-size: 1.1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.copyright {
  color: #95a5a6;
  font-size: 0.9rem;
  line-height: 1.4;
}

.footer-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.badge {
  background: rgba(52, 152, 219, 0.2);
  color: #3498db;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(52, 152, 219, 0.3);
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-badges {
    justify-content: center;
    gap: 8px;
  }
  
  .badge {
    font-size: 0.7rem;
    padding: 4px 8px;
  }
}

@media (max-width: 480px) {
  .footer-container {
    padding: 30px 16px 16px;
  }
  
  .footer-content {
    gap: 24px;
  }
  
  .section-title {
    font-size: 1.3rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .footer-badges {
    gap: 6px;
  }
  
  .badge {
    font-size: 0.6rem;
    padding: 3px 6px;
  }
}
</style> 